﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.DAO;
using Com.CMS263.PO;

namespace Com.CMS263.BLL
{
    public class OperationLogBLL
    {
        OperationLogDAO ddo = new OperationLogDAO();
        public bool Add(OperationLog OperationLog)
        {
            return ddo.Add(OperationLog);
        }
        public OperationLog GetJobsById(int id)
        {
            return ddo.GetJobsById(id);
        }
        public IList<OperationLog> GetAllJobs()
        {
            return ddo.GetAllJobs();
        }
        public bool ModifyJobs(OperationLog OperationLog)
        {
            return ddo.ModifyJobs(OperationLog);
        }
        public bool DeleteJobsById(int id)
        {
            return ddo.DeleteJobsById(id);
        }
        /// <summary>
        /// 批量删除
        /// </summary>
        /// <param name="ids"></param>
        /// <returns></returns>
        public bool DeleteJobsByIds(string ids)
        {
            return ddo.DeleteJobsByIds(ids);
        }
        public int GetTotal()
        {

            return ddo.GetTotal();

        }
        public IList<OperationLog> GetJobsPaging(int pageSize, int currentIndex)
        {
            return ddo.GetJobsPaging(pageSize, currentIndex);
        }
    }
}
